<?php
class Shopping_Model_Invoice extends Zend_Db_Table{
	protected $_name = 'invoice';
	protected $_primary = 'id';
	
	public function saveItem($arrParam = null, $options = null){
		
            if($options['task'] == 'public-order'){
                
                $row =  $this->fetchNew();
                $row->full_name 	= $arrParam['full_name'];
                $row->email 		= $arrParam['email'];
                $row->phone 		= $arrParam['phone'];
                $row->address 		= $arrParam['address'];
                $row->shipping 		= $arrParam['shipping'];
                $row->comment 		= $arrParam['comment'];
                $row->created 		= date('Y-m-d H:i:s');
                $row->status 		= 0;

                $id = $row->save();
            }
            return $id;
	}
}